<!DOCTYPE html>
<html lang="en">

<head>
    <title>T8 - Div T4</title>

    <style>
        h1 {
            text-align: center;
            font-size: 45px;
        }

        #outer {
            height: 1000px;
            width: 1000px;
            border: 1px solid;
            margin: 0 auto;
        }

        #row1 {
            height: 500px;
            width: 1000px;
        }

        #r1_col1 {
            float: left;
            height: 500px;
            width: 500px;
            background-color: lightgreen;
        }

        #r1_col2 {
            float: right;
            height: 500px;
            width: 500px;
            background-color: green;
        }

        #row2 {
            height: 500px;
            width: 1000px;
        }

        #r2_col1 {
            float: left;
            height: 500px;
            width: 500px;
            background-color: lightgreen;
        }

        #r2_col1_r1 {
            float: left;
            height: 250px;
            width: 500px;
        }

        #r2_col1_r1_col1 {
            float: left;
            height: 250px;
            width: 250px;
            background-color: darkblue;
        }

        #r2_col1_r1_col2 {
            float: right;
            height: 250px;
            width: 250px;
            background-color: green;
        }

        #r2_col1_r2 {
            height: 250px;
            width: 500px;
        }

        #r2_col1_r2_r1_col1 {
            float: left;
            height: 125px;
            width: 250px;
        }

        #r2_col1_r2_r1_col1_r1 {
            height: 62.5px;
            width: 250px;
            background-color: brown;
        }

        #r2_col1_r2_r1_col1_r2 {
            height: 62.5px;
            width: 250px;
            background-color: rgb(83, 32, 32);
        }

        #r2_col1_r2_r1_col2 {
            float: right;
            height: 125px;
            width: 250px;

        }

        #r2_col1_r2_r1_col2_col1 {
            float: left;
            height: 125px;
            width: 125px;
            background-color: darkblue;
        }

        #r2_col1_r2_r1_col2_col2 {
            float: right;
            height: 125px;
            width: 125px;
            background-color: rgb(177, 228, 177);
        }

        #r2_col1_r2_r2 {
            height: 125px;
            width: 500px;
        }

        #r2_col1_r2_r2_col1 {
            height: 125px;
            width: 125px;
            float: left;
        }

        #r2_col1_r2_r2_col1_r1 {
            float: left;
            height: 62.5px;
            width: 250px;
            background-color: antiquewhite;

        }

        #r2_col1_r2_r2_col1_r2 {
            height: 62.5px;
            width: 250px;
        }

        #r2_col1_r2_r2_col1_r2_col1 {
            height: 62.5px;
            float: left;
            width: 83.4px;
            background-color: black;
        }

        #r2_col1_r2_r2_col1_r2_col2 {
            height: 62.5px;
            float: left;
            width: 83.2px;
            background-color: gray;
        }

        #r2_col1_r2_r2_col1_r2_col3 {
            height: 62.5px;
            float: left;
            width: 83.4px;
            background-color: black;
        }

        #r2_col1_r2_r2_col2 {
            height: 62.5px;
            width: 250px;
            float: right;
        }

        #r2_col1_r2_r2_col2_col1 {
            height: 125px;
            width: 125px;
            float: left;
            background-color: rgb(11, 245, 11);
        }

        #r2_col1_r2_r2_col2_col2 {
            height: 125px;
            width: 125px;
            float: right;
        }

        #r2_col1_r2_r2_col2_col2_r1 {
            height: 62.5px;
            width: 125px;

        }

        #r2_col1_r2_r2_col2_col2_r1_col1 {
            height: 62.5px;
            width: 62.5px;
            float: left;
            background-color: yellow;
        }

        #r2_col1_r2_r2_col2_col2_r1_col2 {
            height: 62.5px;
            width: 62.5px;
            float: right;
            background-color: black;
        }

        #r2_col1_r2_r2_col2_col2_r2 {
            height: 62.5px;
            width: 125px;
        }

        #r2_col1_r2_r2_col2_col2_r2_col1 {
            height: 62.5px;
            width: 62.5px;
            float: left;
            background-color: black;
        }

        #r2_col1_r2_r2_col2_col2_r2_col2 {
            height: 62.5px;
            width: 62.5px;
            float: right;
            background-color: yellow;
        }

        #r2_col2 {
            height: 500px;
            width: 500px;
            background-color: lightgreen;
            float: right;
        }
 </style>
</head>

<body>

    <h1>Task - 8 | Div Task - 4</h1>

    <div id="outer">

        <div id="row1">
            <div id="r1_col1"></div>
            <div id="r1_col2"></div>
        </div>

        <div id="row2">
            <div id="r2_col1">
                <div id="r2_col1_r1">
                    <div id="r2_col1_r1_col1"></div>
                    <div id="r2_col1_r1_col2"></div>
                </div>

                <div id="r2_col1_r2">
                    <div id="r2_col1_r2_r1">
                        <div id="r2_col1_r2_r1_col1">
                            <div id="r2_col1_r2_r1_col1_r1"></div>
                            <div id="r2_col1_r2_r1_col1_r2"></div>
                        </div>
                        <div id="r2_col1_r2_r1_col2">
                            <div id="r2_col1_r2_r1_col2_col1"></div>
                            <div id="r2_col1_r2_r1_col2_col2"></div>
                        </div>
                    </div>

                    <div id="r2_col1_r2_r2">
                        <div id="r2_col1_r2_r2_col1">
                            <div id="r2_col1_r2_r2_col1_r1"></div>
                            <div id="r2_col1_r2_r2_col1_r2">
                                <div id="r2_col1_r2_r2_col1_r2_col1"></div>
                                <div id="r2_col1_r2_r2_col1_r2_col2"></div>
                                <div id="r2_col1_r2_r2_col1_r2_col3"></div>
                            </div>
                        </div>
                        <div id="r2_col1_r2_r2_col2">
                            <div id="r2_col1_r2_r2_col2_col1"></div>
                            <div id="r2_col1_r2_r2_col2_col2">
                                <div id="r2_col1_r2_r2_col2_col2_r1">
                                    <div id="r2_col1_r2_r2_col2_col2_r1_col1"></div>
                                    <div id="r2_col1_r2_r2_col2_col2_r1_col2"></div>
                                </div>
                                <div id="r2_col1_r2_r2_col2_col2_r2">
                                    <div id="r2_col1_r2_r2_col2_col2_r2_col1"></div>
                                    <div id="r2_col1_r2_r2_col2_col2_r2_col2"></div>
                                </div>
                            </div>
                        </div>
                    </div>


                </div>
            </div>
            <div id="r2_col2"></div>
        </div>

    </div>

</body>

</html>